package com.suntine.familytree.core.framework.component.message;

/**
 * @corporation 
 * @author suntine
 * @creation 2011-5-31 下午02:51:47
 * @description 
 */
public final class Message {
	
	private final MessageType type;
	
	private final String text;

	public Message(MessageType type, String text) {
		this.type = type;
		this.text = text;
	}

	public MessageType getType() {
		return type;
	}

	public String getText() {
		return text;
	}
	
	public String toString() {
		return type + ": " + text;
	}

}
